package cn.zhuangcloud.newversion.common.enums;

/**
 * Unknown:0-99
 * Login:100-199
 * Reg:200-299
 */
public enum RetCodeEnum {

    UNKNOWN_ERROR(0),
    FORMAT(1),
    LOGIN_SUCCESS(100),
    WRONG_PASSWORD(101),
    REG_SUCCESS(200),
    USER_EXISTED(201),
    REG_FAIL(202);

    int code;

    RetCodeEnum(int code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return String.valueOf(code);
    }
}
